package com.heyqing.topic.SingleNumber_0136;

/**
 * ClassName:SingleNumber
 * Package:com.heyqing.topic.SingleNumber_0136
 * Description:
 *
 * @Date:2024/9/16
 * @Author:Heyqing
 */
public class SingleNumber {
    public int singleNumber(int[] nums) {
        int res = 0;
        for (int i = 0; i < nums.length; i++) {
            res ^= nums[i];
        }
        return res;
    }
}
